/**
 * output package name
 */
package com.kingdee.eas.hr.rec;

import java.util.Map;
import java.util.List;
import java.util.Iterator;
import com.kingdee.util.enums.IntEnum;

/**
 * output class name
 */
public class ChildEnum extends IntEnum
{
    public static final int YES_VALUE = 1;
    public static final int NO_VALUE = 2;

    public static final ChildEnum YES = new ChildEnum("YES", YES_VALUE);
    public static final ChildEnum NO = new ChildEnum("NO", NO_VALUE);

    /**
     * construct function
     * @param integer childEnum
     */
    private ChildEnum(String name, int childEnum)
    {
        super(name, childEnum);
    }
    
    /**
     * getEnum function
     * @param String arguments
     */
    public static ChildEnum getEnum(String childEnum)
    {
        return (ChildEnum)getEnum(ChildEnum.class, childEnum);
    }

    /**
     * getEnum function
     * @param String arguments
     */
    public static ChildEnum getEnum(int childEnum)
    {
        return (ChildEnum)getEnum(ChildEnum.class, childEnum);
    }

    /**
     * getEnumMap function
     */
    public static Map getEnumMap()
    {
        return getEnumMap(ChildEnum.class);
    }

    /**
     * getEnumList function
     */
    public static List getEnumList()
    {
         return getEnumList(ChildEnum.class);
    }
    
    /**
     * getIterator function
     */
    public static Iterator iterator()
    {
         return iterator(ChildEnum.class);
    }
}